package com.tao.mapper;

import com.tao.pojo.dto.CleanShoppingCartDto;
import com.tao.pojo.entity.ShoppingCart;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShoppingCartMapper {
    List<ShoppingCart> getAllByUserId(Integer userId);

    void addShoppingCart(ShoppingCart shoppingCart);
    void addShoppingCartList(List<ShoppingCart> shoppingCartList);

    ShoppingCart getShoppingCart(ShoppingCart shoppingCart);


    void updateNumber(ShoppingCart shoppingCart);


    void cleanShoppingCart(CleanShoppingCartDto cleanShoppingCartDto);


}
